package GUI;

import java.awt.*;
import javax.swing.*;
/**
 * This class creates instance of closure stage gui	
 * to display when needed
 * @author Nofar
 *
 */
public class ClosureStageGui extends JPanel {
	
	private static final long serialVersionUID = 1L;
	private JButton canButton;
	private JButton SubButton;
	private JCheckBox Completion;
	private JComboBox reqNum;
	private JLabel lblChooseRequestNumber;
	
	/**
	 * the constructor
	 */
	public ClosureStageGui(){
		super();
		SubButton = new JButton("submit");
		canButton = new JButton("cancel");
		Completion = new JCheckBox(" Close Request");
		reqNum = new JComboBox();
		initiate();
	}
	
	/**
	 * This method initializes the ClosureStageGui
	 */
	public void initiate(){
				
		JLabel lblLogInWindow = new JLabel("Closure Stage");
		lblLogInWindow.setForeground(Color.BLUE);
		lblLogInWindow.setFont(new Font("Arial Black", Font.BOLD, 17));
		lblLogInWindow.setBounds(157, 25, 308, 50);
		add(lblLogInWindow);
				
		SubButton.setFont(new Font("Arial", Font.PLAIN, 12));
		SubButton.setBounds(284, 218, 122, 40);
		add(SubButton);
				
				
		canButton.setFont(new Font("Arial", Font.PLAIN, 12));
		canButton.setBounds(33, 218, 122, 40);
		add(canButton);
				
		setLayout(null);
		setSize(new Dimension(500, 300));	
		
		Completion.setFont(new Font("Arial", Font.BOLD, 12));
		Completion.setBounds(171, 149, 203, 40);
		add(Completion);
		
		reqNum.setBounds(182, 95, 122, 30);
		add(reqNum);
		
		lblChooseRequestNumber = new JLabel("Choose request number:");
		lblChooseRequestNumber.setFont(new Font("Arial", Font.BOLD, 12));
		lblChooseRequestNumber.setBounds(10, 97, 145, 21);
		add(lblChooseRequestNumber);
	}
	/**
	 * 		
	 * @return JButton the submit button
	 */
	public JButton getSubButton(){
		return SubButton;
	}
	/**
	 * 		
	 * @return JButton the cancel button
	 */
	public JButton getcanButton(){
		return canButton;
	}
	/**
	 * 		
	 * @return JCheckBox the completion
	 */
	public JCheckBox getCompletion(){
		return Completion;
	}
	/**
	 * 
	 * @return JComboBox the request number
	 */
	public JComboBox getReqNum(){
		return reqNum;
	}
	/**
	 * 
	 * @param canButton to set the cancel button
	 */
	public void setCanButton(JButton canButton) {
		this.canButton = canButton;
	}

	/**
	 * 
	 * @param subButton to set the submit button
	 */
	public void setSubButton(JButton subButton) {
		SubButton = subButton;
	}
	/**
	 * 
	 * @param completion to set the completion
	 */
	public void setCompletion(JCheckBox completion) {
		Completion = completion;
	}
	/**
	 *  
	 * @param reqNum to set request number
	 */
	public void setReqNum(JComboBox reqNum) {
		this.reqNum = reqNum;
	}
}
